'use strict'
const path = require('path')

module.exports = {
    // 线上
    prod: {
        env: require('./prod.env'),
        index: path.resolve(__dirname, '../prod/index.html'),
        assetsRoot: path.resolve(__dirname, '../prod'),
        assetsSubDirectory: 'static',
        assetsPublicPath: './',
        prodSourceMap: false,
        prodGzip: false,
        prodGzipExtensions: ['js', 'css'],
        bundleAnalyzerReport: process.env.npm_config_report
    },
    // 预发布
    advance: {
        env: require('./advance.env'),
        index: path.resolve(__dirname, '../advance/index.html'),
        assetsRoot: path.resolve(__dirname, '../advance'),
        assetsSubDirectory: 'static',
        assetsPublicPath: './',
        advanceSourceMap: false,
        advanceGzip: false,
        advanceGzipExtensions: ['js', 'css'],
        bundleAnalyzerReport: process.env.npm_config_report
    },
    uat: {
        env: require('./uat.env'),
        index: path.resolve(__dirname, '../uat/index.html'),
        assetsRoot: path.resolve(__dirname, '../uat'),
        assetsSubDirectory: 'static',
        assetsPublicPath: './',
        uatSourceMap: false,
        uatGzip: false,
        uatGzipExtensions: ['js', 'css'],
        bundleAnalyzerReport: process.env.npm_config_report
    },
    // 本地
    dev: {
        env: require('./dev.env'),
        port: process.env.PORT || 8081,
        autoOpenBrowser: true,
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        proxyTable: {},
        cssSourceMap: false
    }
}
